package com.tencent.cloud.iov.kernel.constant;

/**
 * 通用状态码：以两位数命名
 *
 * @author vinsonhuang
 * @date 2018/5/17
 */
public interface StatusCode {

    int SUCCESS = 0;

    String MSG_SUCCESS = "success";

    int FAILED = 1;

    String MSG_FAILED = "failed";

    /**
     * 网络错误
     */
    int NETWORK_ERROR = 10;

    String MSG_NETWORK_ERROR = "网络异常";

    /**
     * http 错误
     */
    int HTTP_ERROR = 11;

    String MSG_HTTP_ERROR = "请求失败";

    /**
     * 连接异常
     */
    int CONNECT_ERROR = 12;

    String MSG_CONNECT_ERROR = "连接异常";

    /**
     * json 数据解析错误
     **/
    int JSON_PARSE_ERROR = 13;

    String MSG_JSON_PARSE_ERROR = "数据解析异常";

    /**
     * 未知错误
     */
    int UNKNOWN_ERROR = 14;

    String MSG_UNKNOWN_ERROR = "未知异常";

    /**
     * 无法解析该域名
     */
    int UNKNOWN_HOST_ERROR = 15;

    String MSG_UNKNOWN_HOST_ERROR = "无法解析该域名异常";

    int SERVER_INTERNAL_ERROR = 500;

    String MSG_SERVER_INTERNAL_ERROR = "服务器内部错误";

}
